package other;

/**
 * create by Sun
 * 2018/8/6
 */
public enum Demo {
    INSTANCE(1,"英雄的崛起"),
    HOPEOfHUMAN(2,"ME");

    Demo() {
    }

    Demo(int status, String statuInfo) {
        this.status = status;
        this.statuInfo = statuInfo;
    }
    public static void test(){
        if("".equals("")){
            System.out.println("你好啊");
        }
    }
    private int status;
    private String statuInfo;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatuInfo() {
        return statuInfo;
    }

    public void setStatuInfo(String statuInfo) {
        this.statuInfo = statuInfo;
    }

    public static void main(String[] args) {
        System.out.println(Demo.INSTANCE.getStatus());
        System.out.println(Demo.HOPEOfHUMAN.getStatuInfo());
        Demo.test();
        /**
         *单例模式，构造器是私有化的，是否可以延迟加载
         * 模具
         */

    }
}
